package com.itwh.project.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author 翁煌
 * @Date2020/7/6 000617:10
 * @Description:
 * @Version1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

    //定义常量

    public static final ResultObj  UPDATE_SUCCESS=new ResultObj(Constant.OK, "更新成功");
    public static final ResultObj  UPDATE_ERROR=new ResultObj(Constant.ERROR, "更新失败");

    public static final ResultObj  ADD_SUCCESS=new ResultObj(Constant.OK, "添加成功");
    public static final ResultObj  ADD_ERROR=new ResultObj(Constant.ERROR, "添加失败");
    public static final ResultObj  ADD_ERROR2=new ResultObj(Constant.ERROR, "课程已存在，请勿重复添加");

    public static final ResultObj  DELETE_SUCCESS=new ResultObj(Constant.OK, "删除成功");
    public static final ResultObj  DELETE_ERROR=new ResultObj(Constant.ERROR, "删除失败");

    //状态码
    private Integer code;
    //消息
    private  String msg;

}
